package com.example.nacosprovider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/provider")
@RefreshScope
public class ProviderController {
    @Value(value = "${provider.user.name1:zhu}")
    private String name;

    @GetMapping(value = "/test/{s}")
    public String test(@PathVariable String s){
        return s+":"+name;
    }
}
